package com.cmbchina.warehouse.packaging.service;

import com.cmbchina.warehouse.packaging.entity.Item;
import com.cmbchina.warehouse.packaging.entity.Package;
import com.cmbchina.warehouse.packaging.entity.Warehouse;

import java.util.List;

/**
 * 旧系统遗留包装服务
 *  三步骤：验证、打包、优化；
 */
public interface ILegacyPackagingService {

    /**
     * 验证
     * @param items
     * @return
     */
    Boolean validateItemDimensions (List<Item> items);

    /**
     * 打包
     * @param items
     * @param warehouse
     * @return
     */
    List<Package> packageItems (List<Item> items, Warehouse warehouse);

    /**
     * 优化
     * @param packages
     * @return
     */
    List<Package> optimizePackaging (List<Package> packages);
}
